home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 49
/
Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso
/
Aminet
/
util
/
rexx
/
Pixload-1.70.lha
/
Pixload-1.70
/
Pixload
< prev
next >
Wrap
Text File
|
1994-04-17
|
3KB
|
145 lines
/**/
call init
call CreateApp(f)
call HandleApp
/*never reached */
/**********************************************************************/
init: procedure expose global.
l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
if AddLibrary("rxmui.library")~=0 then exit
call rxmuiopt("debugmode showerr")
return
/***********************************************************************/
HandleApp: procedure expose prog.
ctrl_c=2**12
do forever
call NewHandle("app","h",ctrl_c)
if and(h.signals,ctrl_c)>0 then exit
select
when h.event="QUIT" then exit
otherwise interpret h.event
end
end
/* never reached */
/***********************************************************************/
CreateApp: procedure expose prog.
open(chemin,"Pixload:Prefs/Pixload.prefs",'Read')
num=0
icones=readln(chemin)
large=readln(chemin)
do while ~EOF(chemin)
script=readln(chemin)
fichier=readln(chemin)
if fichier~="" then do
if script~==1 then prog.num="address command 'wbrun "||fichier||"'"
else prog.num="address command 'execute "||fichier||"'"
end
bull=readln(chemin)
if bull~="" then bulle.num=bull
else bulle.num="???"
num=num+1
end
call close(chemin)
app.Title="Pixload"
app.Version="$VER: Pixload 1.70"
app.Author="Pixel Art - www.Pixel-Art.fr.st"
app.Description="Programs loading bar"
app.SubWindow="win"
app.Base="Pixload"
win.Class="BWin"
win.nohide=1
win.nosizegadget=1
win.saveitems=1
win.ID="MAIN"
win.borderless=1
win.closegadget=0
win.sizegadget=0
win.Contents="mgroup"
mgroup.0="speedbar"
speedbar.class="speedbar"
speedbar.horiz=large
speedbar.RaisingFrame=1
speedbar.Borderless=1
speedbar.viewmode="GFX"
speedbar.imagesdrawer="Pixload:icones"
speedbar.sunny=0
do i=0 to icones-1
speedbar.i.Img=i
speedbar.i.Help=bulle.i
end
speedbar.icones.Img=8
speedbar.icones.Help="Prefs's Pixload"
fin=icones+1
speedbar.fin.Img=9
speedbar.fin.Help="Quit Pixload"
if NewObj("application","app")>0 then exit
do i=0 to icones-1
call sbNotify("speedbar",i,"pressed",1,"app","Return","call dofun("i")")
end
call sbNotify("speedbar",icones,"pressed",1,"app","Return","call prefs")
call sbNotify("speedbar",icones+1,"pressed",1,"app","Return","call fin")
call set("win","open",1)
return
/* --------------------------------------------------- */
dofun: procedure expose prog.
parse arg a
cmd=prog.a
interpret cmd
return
/* ----------- */
fin: procedure
address command 'copy ram:env/mui/pixload.1.prefs to sys:prefs/env-archive/mui/'
exit
return
/* --------------------------------------------*/
prefs:
cmd="address command 'wbrun sys:prefs/pixload-prefs'"
interpret cmd
return
/* -------- */
halt:
break=_c:
exit